import Cookies from 'js-cookie'
// 建议自己重新写一个名称！
const TokenKey = 'Admin-Token'

// 设置一个时间戳的key
const TimeKey = 'hei-ma-mian-mian'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

// 获取时间戳
export function getTimeStamp() {
  return Cookies.get(TimeKey)
}
// 设置时间戳
export function setTimeStamp() {
  Cookies.set(TimeKey, Date.now())
}
